{% extends "base.html" %}

{% block sidebar %}
<div id="sidebar" class="plus2">
	You are logged in as {{ user.username }}. &nbsp;<a href="/logout">Logout</a><br /> 
	
	<div id="side-menu" class="plus2" style="margin-left:30px;">
		
		
		
		# if user.admin
			
			<br />
			
			<a href="/">Product Orders</a>
			<br /><br />
			<a href="/upload">Upload New Product List</a>
			<br /><br />
			<a href="/accounts/">Manage Accounts</a><br />
			<a href="/accounts/new">Create New Account</a><br />
		# else
			<br />
			<a href="/">Your Product Order</a><br />
			<a href="/profile">Edit Account Profile</a>
		
		# endif
		
		{% block sidemenu %}{% endblock %}
		
	</div>
	
</div>
{% endblock %}